import React, { Component } from 'react';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import { Provider } from 'react-redux';
import configureStore from '../../state/configureStore';

import App from '../App/App';
import TestState from '../TestState/TestState';

const store = configureStore()

class Root extends Component {
    constructor() {
        super();
    }

    render() {
        return (
            <Provider store={store}>
                <Router>
                    <div>
                        <Route exact path="/" component={App} />
                        <Route path="/test" component={TestState} />
                    </div>
                </Router>
            </Provider>
        );
    }
}

export default Root;